package com.ffcs.cn.action.scene.layersetting;

import com.supermap.desktop.core.Application;
import com.supermap.desktop.core.Interface.IBaseItem;
import com.supermap.desktop.core.Interface.IFormScene;
import com.supermap.desktop.core.implement.CtrlAction;

/**
 * 场景图层管理
 *
  */
public class CtrlActionLayerSettingScene extends CtrlAction {

	public CtrlActionLayerSettingScene(IBaseItem caller) {
		super(caller);
	}

	@Override
	protected void run() {
		DialogLayerSettingScene dialogLayerSettingScene = new DialogLayerSettingScene();
		dialogLayerSettingScene.showDialog();
	}

	@Override
	public boolean enable() {
		return Application.getActiveApplication().getActiveForm() instanceof IFormScene;
	}
}
